﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SILAS.Entidades;
using SILAS.DAO;

namespace SILAS.BL
{
    public class SapBL : ISapBL
    {
        ISapDAO sapdao;

        public SapBL()
        {
            sapdao = new SapDAO();
        }

        public void registrarSap(SAP sap)
        {
            sapdao.registrarSap(sap);
        }
       // void modificarSap(SAP sap)
        public void registrarSapSector(int idSap, int idSector)
       {
           sapdao.registrarSapSector(idSap,idSector);
       }
       public void eliminarSap(int id)
        {
            sapdao.eliminarSap(id);
        }
       public List<SAP> ListarAllSaps(int id)
       {
          return sapdao.ListarAllSaps(id);
       }

        public List<SAP> ListarSapByIdsector(int id)
        {
            return sapdao.ListarSapByIdsector(id);
        }
        public List<InstEjecutora> getinstEjecutora()
        {
            return sapdao.getinstEjecutora();
        }
      
       public List<TipoSAP> getiposap()
       {
           return sapdao.getiposap();
       }
       

       public List<InstSupervisora> getentiSupervisora()
       {
           return sapdao.getentiSupervisora();
       }
       public List<SAP> ListaSAPByCriterio(string term, int idSector)
       {
           return sapdao.ListaSAPByCriterio(term,idSector);
       }
    

        public void modificarSap(SAP sap)
        {
            throw new NotImplementedException();
        }

        
    }
}
